package com.spring.study.pojo;

import jakarta.validation.constraints.NotNull;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * @TableName order
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Order {

    private String orderId;
    @NotNull
    private Integer empId;
    @NotNull
    private Integer goodId;
    @NotNull
    private Integer nums;
    @NotNull
    private Integer state;

    private Date createTime;
}